package il.ac.tau.cvws.scrabblesidekick.shared.util;

public class ColorUtil
{
	public static boolean isBlack(int col)
	{	
		int red   = (col >> 16) & 0x000000FF;
		int green = (col >> 8 ) & 0x000000FF;
		int blue  = (col)       & 0x000000FF;
		
		int colorEpsilon = 100;
		
		return ((red <= 0 + colorEpsilon) && (red >= 0 - colorEpsilon) &&
				(green <= 0 + colorEpsilon) && (green >= 0 - colorEpsilon) &&
				(blue <= 0 + colorEpsilon) && (blue >= 0 - colorEpsilon));
	}
}
